var express = require("express");
var router = express.Router();

/* GET home page. */
router.get("/", function (req, res, next) {
  // 获取数据库数据
  const data = [
    {
      title: "陈建诚东芝在出席销售大会陈建诚东芝在出席销售大会",
      time: "2022-2-24",
    },
    {
      title: "陈建诚东芝在席销售大会",
      time: "2022-2-25",
    },
    {
      title: "陈建诚东芝在出席销诚东芝在出席销售大会",
      time: "2022-2-26",
    },
    {
      title: "陈建诚东芝在出席销售大会陈建诚东芝在出席销售大会",
      time: "2022-2-27",
    },
    {
      title: "陈建诚东芝在出席销售大会",
      time: "2022-2-28",
    },
    {
      title: "陈建诚东芝在出席销售大会陈建诚席销售大会",
      time: "2022-2-29",
    },
  ];

  const t1 = "公司新闻111";

  res.render("index", { data, t1 });
});

module.exports = router;
